<template>
	<view class="goods-nav">
		<view class="nav-btn left-btn" @click="open(ORDER_TYPE.AGENT)">
			成为代理
		</view>
		<view class="nav-btn right-btn" @click="open(ORDER_TYPE.USER)">
			立即购买
		</view>
	</view>
</template>

<script lang="ts" setup>
	import {ORDER_TYPE} from '@/enum/goods';
	import {defineEmits} from 'vue';
	
	const emit = defineEmits(['open']);
	
	const open = (type:ORDER_TYPE)=>{
		emit('open',type);
	}
</script>

<style lang="scss" scoped>
	@import "./goodsNav.scss";
</style>